package org.tgcloud.group.repository;

import org.apache.ibatis.annotations.Param;
import org.tgcloud.group.entity.LogInfo;

import java.util.List;

public interface LogInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(LogInfo record);

    int insertSelective(LogInfo record);

    LogInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(LogInfo record);

    int updateByPrimaryKey(LogInfo record);

    LogInfo selectSuccessLoginInfo(@Param("userId") Integer userId, @Param("status") short loginSuccess, @Param("type") Short device_type);

    LogInfo selectByToken(@Param("token") String token);

    LogInfo selectByUserId(@Param("userId") Integer userId);

    List<LogInfo> selectListByRoleId(@Param("roleId") Integer roleId);

    LogInfo selectNormalUserByUserId(@Param("userId") Integer userId);

    int updateDelStatusByUserId(@Param("userId") Integer userId);

}
